package org.example;

import org.example.config.SpringConfig;
import org.example.dao.MonkeyDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AdviceGetDataDemo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
        MonkeyDao monkeyDao = applicationContext.getBean(MonkeyDao.class);
        String name = monkeyDao.findName(25, "123456");
        System.out.println("AdviceGetDataDemo-return-name:" + name);
    }
}
